package com.yang.dao.impl;

import java.sql.SQLException;

import org.springframework.stereotype.Repository;

import com.yang.common.CommonDAO;
import com.yang.dao.VersionDAO;

@Repository("VersionDAOImpl")
public class VersionDAOImpl extends CommonDAO implements VersionDAO {

	public void updateVersion(String companyId) throws SQLException {
		
		sqlMapClient.update("version.versionUpdate", companyId);
	}

	public String selectLatestVersion(String companyId) throws SQLException {
		
		return (String) sqlMapClient.queryForObject("version.selectLatestVersion", companyId);
	}

}
